<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.study.web.pojo.Resume" %>
<% ArrayList goodlist=(ArrayList)session.getAttribute("goodlist"); %>
<form action="/demo1/doCreate" method="get">
    <input type="submit" name="新建" value="新建"/>
</form>
<table border="1" width="450" rules="none" cellspacing="0" cellpadding="0">

    <tr align="center" height=30 bgcolor="lightgrey">
        <td>id</td>
        <td>姓名</td>
        <td>地址</td>
        <td>電話</td>
        <td>刪除</td>
        <td>編輯</td>
    </tr>
    <% if(goodlist==null||goodlist.size()==0){ %>
    <tr height="100"><td colspan="3" align="center">no shop！</td></tr>
    <%}
    else {
        for(int i=0;i<goodlist.size();i++){
            Resume single=(Resume)goodlist.get(i);
    %>
    <tr height="50" align="center">
        <td><%=single.getId() %></td>
        <td><%=single.getName() %></td>
        <td><%=single.getAddress() %></td>
        <td><%=single.getPhone() %></td>
        <td><a href="/demo1/doEdit?id=<%=single.getId()%>">编辑</a></td>
        <td><a href="/demo1/doDelete?id=<%=single.getId()%>">删除</a></td>
    </tr>
    <%}
    } %>
</table>